﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace EzDesk.DevHelper.EzMLGenerator
{
    public class LanguageReplaceTextProcessor : EzMLProcessor
    {
        public override string Process(string input)
        {
            string regexPattern = "{(?<content>.*?)}";
            var output = input;

            output = Regex.Replace(output, regexPattern, "||${content}||");
            output = output.Replace("||", "$");
            
            return output;
        }
    }
}
